package com.sky.mapper;

import com.github.pagehelper.Page;
import com.sky.dto.CategoryDTO;
import com.sky.entity.Category;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CategoryMapper {

    Page<Category> pageQuery(CategoryDTO categoryDTO);


    void save(Category categoryDTO);

    void Delete(Long id);

    List<Category> list(Integer type);
    List<Category> alllist();

    void update(Category category);
}
